//
//  BaseLabel.m
//  AAIM
//
//  Created by 远的小布丁 on 2020/1/21.
//  Copyright © 2020 AAIM. All rights reserved.
//

#import "BaseLabel.h"

@implementation BaseLabel

- (instancetype)init {

if (self = [super init]) {

_textInsets = UIEdgeInsetsZero;

}

return self;

}

- (instancetype)initWithFrame:(CGRect)frame {

if (self = [super initWithFrame:frame]) {

_textInsets = UIEdgeInsetsZero;

}

return self;

}

- (void)drawTextInRect:(CGRect)rect {

[super drawTextInRect:UIEdgeInsetsInsetRect(rect, _textInsets)];

}

@end
